package com.king.designpatterns.创造型模式.工厂模式;

/**
 * 具体产品 - 葡萄
 *
 * @author king
 * @date 2021-06-05 21:37
 */
public class Grape implements Fruit {
    private boolean seedless;

    public boolean isSeedless() {
        return seedless;
    }

    public void setSeedless(boolean seedless) {
        this.seedless = seedless;
    }

    @Override
    public void grow() {
        System.out.println("葡萄正在生长");
    }

    @Override
    public void harvest() {
        System.out.println("收获葡萄");
    }

    @Override
    public void plant() {
        System.out.println("载种葡萄");
    }
}
